<%--
  Created by IntelliJ IDEA.
  User: hudihui
  Date: 2019/3/1
  Time: 16:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<style type="text/css">
    table{
        border-collapse: collapse;
    }
    td{
        height: 30px;
        padding-right: 40px;
    }
</style>
<body>
<table border="1" align="center">
    <tr>
        <td>学号</td>
        <td>姓名</td>
        <td>性别</td>
        <td>电话</td>
        <td>地址</td>
        <td>邮箱</td>
        <td>身份证</td>
        <td></td>
    </tr>
<c:forEach items="${stuList}" var="stu">
    <tr>
        <td>${stu.studentNo}</td>
        <td>${stu.studentName}</td>
        <td>
            <c:if test="${stu.sex==true}">男</c:if>
            <c:if test="${stu.sex==false}">女</c:if>
        </td>
        <td>${stu.phone}</td>
        <td>${stu.address}</td>
        <td>${stu.email}</td>
        <td>${stu.identityCard}</td>
        <td><a href="/upStu?id=${stu.studentNo}"  style="margin-left: 10px">编辑</a>
            <a href="/index"  style="margin-left: 10px">删除</a>
        </td>
</tr>
</c:forEach>
</table>

</body>
</html>
